<template>
  <div class="layout-page">
    <div> <!-- 二级路由出口 -->
      <keep-alive :include="['UserPage','ArticlePage','CollectPage',]">
        <router-view></router-view>
      </keep-alive>

    </div>

    <div><van-tabbar v-model="active" route>
  <van-tabbar-item  to="/article" icon="wap-home-o" >首页</van-tabbar-item>
  <van-tabbar-item to="/collect" icon="search" >找房</van-tabbar-item>
  <van-tabbar-item to="/like" icon="newspaper-o">资讯</van-tabbar-item>
  <van-tabbar-item to="/user" icon="user-o" >我的</van-tabbar-item>
</van-tabbar></div>
  </div>
</template>

<script>
export default {
  name: 'LayoutPage',
  data () {
    return {
      active: 0
    }
  }
}
</script>

<style lang="less" scoped></style>
